package com.dale.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dale.common.dto.CommentDto;
import com.dale.entity.Comment;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author  ：MarkerHub
 * @since 2020-05-25
 */
public interface CommentService extends IService<Comment> {
    public IPage<CommentDto> findParentComment(Page<CommentDto> page, Long bid);

    public IPage<CommentDto> findChildComment(Page<CommentDto> page,Long bid);

    public List<CommentDto> findAllChildComments(Long parentCid);

    public IPage<CommentDto> getAllComments(Page<CommentDto> page,Long bid);
}
